package com.example.sys.log.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.example.core.enums.SysEnum;
import com.fasterxml.jackson.annotation.JsonValue;


/****
 *
 * 定义日志请求方法
 */
public enum SysLogMethod implements SysEnum {

    ADD("新增方法", "1"), DELETE("删除方法", "2"), UPDATE("修改方法", "3"), SELECT("查询方法", "4"), LOGIN("登陆方法", "5"), LOGOUT("登出方法", "6");

    @JsonValue
    private String label;

    @EnumValue
    private String value;

    @Override
    public String getValue() {
        return value;
    }

    @Override
    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public void setValue(String value) {
        this.value = value;
    }

    SysLogMethod(String label, String value) {
        this.label = label;
        this.value = value;
    }
}
